home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-ARM / ARCH-VNC / HARDWARE.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  75 lines

  1. /*
  2.  * linux/include/asm-arm/arch-vnc/hardware.h
  3.  *
  4.  * Copyright (C) 1998 Corel Computer/Russell King.
  5.  *
  6.  * This file contains the hardware definitions of the VNC.
  7.  */
  8.  
  9. /*    Logical    Physical
  10.  * 0xffe00000    0x7c000000    PCI I/O space
  11.  * 0xfe000000    0x42000000    CSR
  12.  * 0xfd000000    0x78000000    Outbound write flush
  13.  * 0xfc000000    0x79000000    PCI IACK/special space
  14.  * 0xf9000000    0x7a000000    PCI Config type 1
  15.  * 0xf8000000    0x7b000000    PCI Config type 0
  16.  * 
  17.  */
  18.  
  19. #include <asm/dec21285.h>
  20.  
  21. #define IO_BASE_ARM_CSR        0xfe000000
  22. #define PCI_IACK        0xfc000000
  23.  
  24. /* LEDs */
  25. #define XBUS_LEDS        ((volatile unsigned char *)0xfff12000)
  26. #define XBUS_LED_AMBER        (1 << 0)
  27. #define XBUS_LED_GREEN        (1 << 1)
  28. #define XBUS_LED_RED        (1 << 2)
  29. #define XBUS_LED_TOGGLE        (1 << 8)
  30.  
  31. /* PIC irq control */
  32. #define PIC_LO            0x20
  33. #define PIC_MASK_LO        0x21
  34. #define PIC_HI            0xA0
  35. #define PIC_MASK_HI        0xA1
  36.  
  37. #define IO_END            0xffffffff
  38. #define IO_BASE            0xe0000000
  39. #define IO_SIZE            (IO_END - IO_BASE)
  40.  
  41. #define HAS_PCIO
  42. #define PCIO_BASE        0xffe00000
  43.  
  44. #define KERNTOPHYS(a)        ((unsigned long)(&a))
  45.  
  46. //#define PARAMS_OFFSET        0x0100
  47. //#define PARAMS_BASE        (PAGE_OFFSET + PARAMS_OFFSET)
  48.  
  49. #define FLUSH_BASE_PHYS        0x50000000
  50.  
  51. /* GPIO pins */
  52. #define GPIO_CCLK        0x800
  53. #define GPIO_DSCLK        0x400
  54. #define GPIO_E2CLK        0x200
  55. #define GPIO_IOLOAD        0x100
  56. #define GPIO_RED_LED        0x080
  57. #define GPIO_WDTIMER        0x040
  58. #define GPIO_DATA        0x020
  59. #define GPIO_IOCLK        0x010
  60. #define GPIO_DONE        0x008
  61. #define GPIO_FAN        0x004
  62. #define GPIO_GREEN_LED        0x002
  63. #define GPIO_RESET        0x001
  64.  
  65. /* CPLD pins */
  66. #define CPLD_DSRESET        8
  67. #define CPLD_UNMUTE        2
  68.  
  69. #ifndef __ASSEMBLY__
  70. extern void gpio_modify_op(int mask, int set);
  71. extern void gpio_modify_io(int mask, int in);
  72. extern int  gpio_read(void);
  73. extern void cpld_modify(int mask, int set);
  74. #endif
  75.